package org.ricks.item;

import java.util.Optional;
import java.util.ServiceLoader;

public class Demo {

    public static void main(String[] args) {
//        InventorySystem inventory = new InventorySystem(20);
//        inventory.addItem(1001, 3); // 添加3瓶血药
//
//        Player player = new Player();
//        PlayerContext context = new PlayerContext(player, inventory);
//
//        // 使用第一个血瓶
//        Optional<String> firstPotion = inventory.items.keySet().stream().findFirst();
//        firstPotion.ifPresent(uuid -> inventory.useItem(uuid, context));


        System.err.println(16/7 + 1);
        System.err.println(10%7);
    }
}
